import { createStore } from 'vuex'

export default createStore({
    state: {
        store_btnTitle: "Click Me",
    },
    mutations: {
        store_showBuilder(state, params) {
            let page = params.page;
            let builderTitle = params.builderTitle;
            let toastTitle = params.toastTitle;
            page.yFree.yShowBuilder(builderTitle, (confirm) => {
                if (confirm) page.yFree.yToast(toastTitle);
            }, false);
        },
    }
});
